<template>
  <section>
    <el-tabs v-model="pageName">
      <el-tab-pane label="商品分类" name="first">
        <goods-type v-if="pageName === 'first'"></goods-type>
      </el-tab-pane>
      <el-tab-pane label="商品管理" name="second">
      </el-tab-pane>
    </el-tabs>
  </section>
</template>

<script>
  import goodsType from './goodsType'
  import errHandler from '@/assets/errHandler.js'
  import {mapGetters, mapActions, mapMutations} from 'vuex'
  import Vue from 'vue'//后续添加属性，需要vue联动
  export default {
    name: "index",
    components: {goodsType},
    data() {
      return {
        pageName:'first',
      }
    },
    created() {
    },
    mounted() {
    },
    computed: {
      ...mapGetters(['department']),
    },
    watch: {},
    methods: {
      ...mapActions({
        fetch: 'fetch'
      })
    }
  }
</script>

<style scoped>

</style>
